package etnorservice.etnor_service.service;

import etnorservice.etnor_service.domain.po.Like;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/11/30/11:30
 **/

public interface LikeService {
    // 添加点赞
    void addLike(Like like);

    // 取消点赞
    void removeLike(Long userId, Long targetId, Integer targetType);

    // 检查用户是否点赞
    boolean hasUserLiked(Long userId, Long targetId, Integer targetType);

    // 获取点赞数
    int getLikeCount(Long targetId, Integer targetType);
}
